libxl: allow a generation ID to be specified at domain creation
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 27 Jun 2014 13:57:51 +0000 (14:57 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 27 Jun 2014 14:55:57 +0000 (15:55 +0100)
commitbfa33afa52f4c1a96620cd961dce1e32e33becb4
tree551000cd40028d49b9e4691bf86346c086171330
parent012098b81b82e550410f4b9d04029c3dc81ea253
libxl: allow a generation ID to be specified at domain creation

Toolstacks may specify a VM generation ID using the u.hvm.ms_vm_genid
field in the libxl_domain_build_info structure, when creating a
domain.

The toolstack is responsible for providing the correct generation ID
according to the Microsoft specification (e.g., generating new random
ones with libxl_ms_vm_genid_generate() as appropriate when restoring).

Although the specification requires that a ACPI Notify event is raised
if the generation ID is changed, the generation ID is never changed
when the domain is in a state to receive such an event (it's either
newly created or suspended).

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Cc: David Scott <dave.scott@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/Makefile
tools/libxl/gentest.py
tools/libxl/libxl.h
tools/libxl/libxl_dom.c
tools/libxl/libxl_genid.c [new file with mode: 0644]
tools/libxl/libxl_internal.h
tools/libxl/libxl_json.c
tools/libxl/libxl_json.h
tools/libxl/libxl_types.idl
tools/ocaml/libs/xl/genwrap.py
tools/ocaml/libs/xl/xenlight_stubs.c